<h1>Ingredients List</h1>

<table>
  <thead>
    <tr>
      <th>Id ingredient</th>
      <th>Libelle ingredient</th>
      <th>Quantite stock</th>
      <th>Seuil stock</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($ingredients as $ingredient): ?>
    <tr>
      <td><a href="<?php echo url_for('ingredient/show?id_ingredient='.$ingredient->getIdIngredient()) ?>"><?php echo $ingredient->getIdIngredient() ?></a></td>
      <td><?php echo $ingredient->getLibelleIngredient() ?></td>
      <td><?php echo $ingredient->getQuantiteStock() ?></td>
      <td><?php echo $ingredient->getSeuilStock() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('ingredient/new') ?>">New</a>
